package so.sao.shop.supplier.kingdee.response;

/**
 * @author gxy on 2017/11/17.
 */
public class ErrorResponse {

    private String sub_code;
    private String sub_msg;

    public String getSub_code() {
        return sub_code;
    }

    public void setSub_code(String sub_code) {
        this.sub_code = sub_code;
    }

    public String getSub_msg() {
        return sub_msg;
    }

    public void setSub_msg(String sub_msg) {
        this.sub_msg = sub_msg;
    }

    public static ErrorResponse fail(String code, String message){
        ErrorResponse errorResponse = new ErrorResponse();
        errorResponse.setSub_code(code);
        errorResponse.setSub_msg(message);
        return errorResponse;
    }
}
